Python v3.7 HowTos:
Convert a pair of values into a sorted unique array
Insert an element before each element of a list
x = [1, 2, 3, 4, 5, 6, 7, 8, 9] print(x[::2]) # [1, 3, 5, 7, 9]
See also
https://www.w3resource.com/python-exercises/list/python-data-type-list-exercise-46.php